package com.greydawn.FacadePattern;

/**
 * @Author: zhongwr
 * @Create: 2021/12/12 23:12
 * @Version 1.0
 * @Description:
 */
public class Facade {

    private Circle circle;
    private Rectangle rectangle;
    private Square square;

    public Facade() {
        this.circle = new Circle();
        this.rectangle = new Rectangle();
        this.square = new Square();
    }

    public void drawCircle() {
        circle.draw();
    }

    public void drawRectangle() {
        rectangle.draw();
    }

    public void drawSquare() {
        square.draw();
    }
}
